﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.IRmBuilding _iRmBuilding;

        public static IRmBuilding CreateRmBuilding()
        {
            if (_iRmBuilding == null)
            {
                string className = GlobalConfig.RtSystemPath + ".RM.RmBuilding_Sys";
                _iRmBuilding = (IRmBuilding)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iRmBuilding;
        }
    }

    public interface IRmBuilding
    {
        DataTable GetBuildingData(String Where);
        bool UpdateBuildingData(DataTable dt);
    }
}
